<?php
/**
 * Created by PhpStorm
 * User: honglin
 * Date: 2022/8/4
 * Time: 下午5:20
 */

namespace App\Library\Token;

use Swoft\Bean\Annotation\Mapping\Bean;
use Swoft\Redis\Redis;


class SystemAdminGetTokenLibrary
{
    protected $token_pre = 'Admin:';

    private $adminId;

    private $token;

    public function __construct($token)
    {
        $this->token = $token;
    }

    public function getUid(){
        return Redis::get($this->token_pre.$this->token);
    }

    
}